/* 顶部信息 */
.top {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 14px;
}

.top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-date {
    color: #666;
}

.top-links a {
    color: #333;
    text-decoration: none;
    margin-left: 15px;
}

.top-links a:first-child {
    margin-left: 0;
}

/* 头部 */
.head {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.logo-container {
    width: 100%;
    text-align: center;
}

.logo-background {
    display: inline-block;
    background-image: url('../assets/images/logo-bg.jpg'); /* 背景图片路径 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 400px; /* 调整为合适尺寸 */
    height: 100px; /* 调整为合适尺寸 */
    position: relative;
    border-radius: 8px;
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80px;
    width: auto;
}

/* 导航 */
.navbar {
    background: white; /* 白色背景 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 添加阴影以增强视觉效果 */
}

.nav {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav li {
    position: relative;
}

.nav h3 {
    margin: 0;
}

.nav h3 a {
    display: block;
    color: #333; /* 深色文字 */
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s; /* 添加过渡效果 */
}

.nav h3 a:hover {
    color: #ff0000; /* 悬停时文字变为红色 */
}

/* 子菜单样式 */
.nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white; /* 白色背景 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    flex-direction: column;
    display: none;
    z-index: 100;
    padding: 0;
    margin: 0;
    border-top: 2px solid #ff0000; /* 顶部边框改为红色 */
}

.nav li:hover > ul {
    display: flex;
}

.nav li ul li {
    width: 100%;
}

.nav li ul li a {
    display: block;
    padding: 10px 15px;
    color: #333; /* 深色文字 */
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.nav li ul li:last-child a {
    border-bottom: none;
}

.nav li ul li a:hover {
    background-color: #ffe6e6; /* 悬停时的背景色改为浅红色 */
}